texture: Refactor downloading
authorBenjamin Otte <otte@redhat.com>
Thu, 7 Oct 2021 04:19:41 +0000 (06:19 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 12 Oct 2021 00:06:43 +0000 (02:06 +0200)
commitb65b64628d0b5c883ba563eda412d88758c67b89
tree5271fe8cce6e714fd38e4dd6d9a265d710b950ad
parentd89e82d4a082febfe44d3504786fcab91eab62a3
texture: Refactor downloading

Pass a format do GdkTextureClass::download(). That way we can download
data in any format.

Also replace gdk_texture_download_texture() with
gdk_memory_texture_from_texture() which again takes a format.

The old functionality is still there for code that wants it: Just pass
gdk_texture_get_format (texture) as the format argument.
gdk/gdkgltexture.c
gdk/gdkmemorytexture.c
gdk/gdkmemorytextureprivate.h
gdk/gdktexture.c
gdk/gdktextureprivate.h
gdk/loaders/gdkpng.c
gdk/loaders/gdktiff.c
gsk/gl/gskgldriver.c